cask 'termhere' do
  version '1.2.1'
  sha256 '8311c29b09f982ce829d5733865c715f4f457d0a46dcab2beb18462a73a37b9d'

  # github.com/hbang/TermHere/ was verified as official when first introduced to the cask
  url "https://github.com/hbang/TermHere/releases/download/#{version}/TermHere.#{version}.dmg"
  appcast 'https://github.com/hbang/TermHere/releases.atom'
  name 'TermHere'
  homepage 'https://hbang.ws/apps/termhere/'

  app 'TermHere.app'

  zap trash: [
               '~/Library/Application Support/CrashReporter/TermHere Finder Extension*',
               '~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/ws.hbang.termhere.sfl*',
               '~/Library/Caches/ws.hbang.TermHere',
               '~/Library/Containers/ws.hbang.TermHere.TermHere-Finder-Extension',
               '~/Library/Cookies/ws.hbang.TermHere.binarycookies',
               '~/Library/Group Containers/*.group.ws.hbang.TermHere',
               '~/Library/Logs/DiagnosticReports/TermHere Finder Extension*',
               '~/Library/Preferences/ws.hbang.TermHere.plist',
             ]
end
